package com.jarvan.repository;

import com.jarvan.model.Refund;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RefundRepository extends JpaRepository<Refund, Integer> {
    List<Refund> findAllByBuyerIdAndRefundStatus(Integer buyerId, Integer refundStatus);
    Refund findByTicketId(String ticketId);
    Page<Refund> findAllByRefundStatus(Integer refundStatus, Pageable pageable);
}
